package org.chnxi.study.springcloud.dubbo.shiro.auth.service;

import org.chnxi.study.springcloud.dubbo.shiro.auth.entity.Permission;
import org.chnxi.study.springcloud.dubbo.shiro.auth.entity.Role;
import org.chnxi.study.springcloud.dubbo.shiro.auth.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2020-08-12
 */
public interface IUserService extends IService<User> {

    public List<Role> findRoles(Integer userId);

    public List<Permission> findPermissions(Integer id);

    public User findUserById(Integer id);

    public User findUserByName(String name);

    public int assignDefaultUserRolePermission(User user);

}
